package businesslogic.Orderbl;

import VO.OrderInfoVO;
import service.OrderService.BrowseUnfilledOrderService;
import util.OrderType;
import util.RoomType;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.Iterator;

public class BrowseUnfilledOrder extends UnicastRemoteObject implements BrowseUnfilledOrderService{

    private static final long serialVersionUID = 7082985330970567762L;
    OrderInfoVO orderInfoVO=new OrderInfoVO("111111111111111111","root", OrderType.AbnormalOrder,"root", RoomType.FAMILY_ROOM,1,1,false,"1","1","1","1","1","1","1");

    public BrowseUnfilledOrder() throws RemoteException {
        super();
    }

    public OrderInfoVO getOrderInfo(String orderID)throws RemoteException {
    	OrderInfoVO orderVO=new OrderInfoVO("1", "2", null, null, null, 0, 0, false, null, null, null, null, null, null, null);
        
    	return orderVO;
    }
    public Iterator<OrderInfoVO>getOrderList(String username){
    	ArrayList<OrderInfoVO> list= new ArrayList<OrderInfoVO>();
    	OrderInfoVO orderVO=new OrderInfoVO("1", "2", null, null, null, 0, 0, false, null, null, null, null, null, null, null);
        list.add(orderVO);
        Iterator<OrderInfoVO> iter=list.iterator();
        return  iter;
    }
	
}
